<?php
require("&#46;&#46;/&#46;&#46;/fpdf/fpdf.php");



$pdf = new FPDF();



//First page

$pdf->AddPage();

$pdf->SetFont('Times','',14);



$pdf->write(5,'For a link to page 2 - Click ');

$pdf->SetFont('','U');

$pdf->SetTextColor(0,0,255);

$link_to_pg2 = $pdf->AddLink();

$pdf->write(5,'here',$link_to_pg2);

$pdf->SetFont('');



//Second page

$pdf->AddPage();

$pdf->SetLink($link_to_pg2);

$pdf->Image('phplogo.jpg',10,10,30,0,'','http://www.php.net');

$pdf->ln(20);

$pdf->SetTextColor(1);

$pdf->Cell(0,5,'This is a link and a clickable image', 0, 1, 'L');

$pdf->SetFont('','U');

$pdf->SetTextColor(0,0,255);

$pdf->Write(5,'www.oreilly.com','http://www.oreilly.com');

$pdf->Output();
